From 2034ab8642d0bdaa9ace9baffeb5ea83389b73c9 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 22 Mar 2008 17:53:42 +0000 Subject: [PATCH] New function implements GtkCellLayoutClass::get_cells. (#523787) 2008-03-22 Matthew Barnes * gtk/gtkentrycompletion.c (gtk_entry_completion_get_cells): New function implements GtkCellLayoutClass::get_cells. (#523787) svn path=/trunk/; revision=19923 --- ChangeLog | 5 +++++ gtk/gtkentrycompletion.c | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index 42039d38f7..32dc863ae5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-03-22 Matthew Barnes + + * gtk/gtkentrycompletion.c (gtk_entry_completion_get_cells): + New function implements GtkCellLayoutClass::get_cells. (#523787) + 2008-03-22 Tor Lillqvist Bug 523782 - Leftover call to GDK_THREADS_LEAVE() in gtktoolbar.c diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c index cc01b1e3df..ed1d3c1fe3 100644 --- a/gtk/gtkentrycompletion.c +++ b/gtk/gtkentrycompletion.c @@ -98,6 +98,7 @@ static void gtk_entry_completion_clear_attributes (GtkCellLayout static void gtk_entry_completion_reorder (GtkCellLayout *cell_layout, GtkCellRenderer *cell, gint position); +static GList * gtk_entry_completion_get_cells (GtkCellLayout *cell_layout); static gboolean gtk_entry_completion_visible_func (GtkTreeModel *model, GtkTreeIter *iter, @@ -410,6 +411,7 @@ gtk_entry_completion_cell_layout_init (GtkCellLayoutIface *iface) iface->set_cell_data_func = gtk_entry_completion_set_cell_data_func; iface->clear_attributes = gtk_entry_completion_clear_attributes; iface->reorder = gtk_entry_completion_reorder; + iface->get_cells = gtk_entry_completion_get_cells; } static void @@ -747,6 +749,16 @@ gtk_entry_completion_reorder (GtkCellLayout *cell_layout, gtk_cell_layout_reorder (GTK_CELL_LAYOUT (priv->column), cell, position); } +static GList * +gtk_entry_completion_get_cells (GtkCellLayout *cell_layout) +{ + GtkEntryCompletionPrivate *priv; + + priv = GTK_ENTRY_COMPLETION_GET_PRIVATE (cell_layout); + + return gtk_tree_view_column_get_cell_renderers (priv->column); +} + /* all those callbacks */ static gboolean gtk_entry_completion_default_completion_func (GtkEntryCompletion *completion, -- 2.30.2